include ../makeconfig

OBJS	=lib.o malloc.o

../lib.o:	$(OBJS)
	$(LD) $(OBJS) -r -o ../lib.o 
%.o:%.c
	$(GCC) $(CFLAGS) $< -c -o $@
%.o:%.s
	$(AS) $(AFLAGS) $< -o $@

clean:
	rm -f *.o

lib.o:lib.c ../include/s3c2410/serial.h ../include/s3c2410/lcd.h ../include/s3c2410/s3c2410.h \
 ../include/kernel/sched.h ../include/s3c2410/cpu.h
malloc.o:malloc.c